
var defaultSettings;
var autoLoad = true;
  
GuiSettings.prototype = {};

function GuiSettings(settings)
{
  if (!settings) 
    {settings = {};}
    
  //Can be overriden
  this.callMethod = settings.callMethod || "ondemandjs";
  this.dataFormat = settings.dataFormat || "JSON";
  this.dataSource = settings.dataSource || "http://localhost:90/FA/backend/datasource/datasource.php"; 
  //"http://dstest.ohmydata.org/web/fa_dev.php/generic_objects";  
  this.formViewName = settings.formViewName || "form";
  
  //Static
  this.usePatternsCache = false;
  this.untypedList = "*";
  
  //Drag and drop settings
  this.dragClassPrefix = "drag_";
  this.dropTolerance = "pointer";
  this.dragHelperZIndex = 1000;
  this.dragHelperOpacity = 0.7;
  this.dragHelperMode = "original";
  
  //Default callbacks
  this.onSave = function() {};
  
  //Messages
  this.displayMessage = function(message,type) {alert(message)};
}